package models.venue.room;

import models.BaseModel;
import models.venue.policy.Policy;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 包房价格策略
 * Created by hanbin on 17/4/6.
 */
@Entity
@Table(name="room_policies")
public class RoomPolicy  extends BaseModel {

    /**
     * 包房id
     */
    @JoinColumn(name="room_id")
    @ManyToOne
    public Room room;

    /**
     * 价格策略
     */
    @JoinColumn(name="policy_id")
    @ManyToOne
    public Policy policy;

}
